<template>
  <div class="about">
    <h1>This is an about page</h1>
    <el-button style="float: right; padding: 3px 0" type="text" @click="toAddCookie">（添加cookie）</el-button>
    <el-button style="float: right; padding: 3px 0" type="text" @click="toClearCookie">（清除cookie）</el-button>
  </div>
</template>

<script>
export default {
  methods: {
    toAddCookie(){
      localStorage.setItem('Authorization', '1235');
    },
    toClearCookie(){
      localStorage.removeItem('Authorization')
    },
  }
}
</script>
